<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head><meta charset="utf-8"/><title>产品管理</title></head>
<body>
<h2>产品列表</h2>
<table border="1" cellpadding="6">
    <tr><th>ID</th><th>名称</th><th>分类</th><th>首页展示</th><th>操作</th></tr>
    <tr th:each="p : ${page.content}">
        <td th:text="${p.id}"></td>
        <td th:text="${p.name}"></td>
        <td th:text="${p.category}"></td>
        <td th:text="${p.showOnHomepage}"></td>
        <td><a th:href="@{/admin/products/edit/{id}(id=${p.id})}">编辑</a></td>
    </tr>
</table>
</body>
</html>